# $Id: PKGBUILD 83744 2013-02-04 21:10:53Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org

pkgname=interlis-compiler
pkgver=4.2.0
pkgrel=3
pkgdesc='Compiler for INTERLIS 2'
arch=('any')
url='http://www.interlis.ch/content/index.php?language=e'
license=('LGPL')
depends=('sh' 'java-runtime')
source=("http://downloads.sourceforge.net/project/umleditor/ili2c/$pkgver/ili2c-$pkgver.zip"
        'ili2c.sh')
sha256sums=('538cbcf9f01deaad468a27945390b113c922b78e4b78317a872aeae1a739c5d7'
            '0fcf0177336c5e903267108e99479dcddcced9a01716ed8280b7d264309c9c95')

package() {
  install -d "$pkgdir/opt/ili2c" "$pkgdir/usr/bin"
  rm -r "$srcdir/ili2c-$pkgver/doc"
  mv "$srcdir/ili2c-$pkgver/ili2c.jar" "$pkgdir/opt/ili2c/"
  cp -r "$srcdir/ili2c-$pkgver/"* "$pkgdir/opt/ili2c/"
  install -Dm755 "$srcdir/ili2c.sh" "$pkgdir/usr/bin/ili2c"
}

# vim:set ts=2 sw=2 et:
